package org.mclll.xwangplugin.resourcePack.config;

import org.mclll.xwangplugin.config.GlobalConfig;

/**
 * @author llB
 * @date 2024-06-21 12:36
 * @description todo
 */
public class PackConfig {
    private static final String KEY = "resourcePackHost";
    public static boolean getEnable() {
        return GlobalConfig.CONFIG.getConfigurationSection(KEY).getBoolean("enable", false);
    }
    public static String getBaseUrl() {
        return GlobalConfig.CONFIG.getConfigurationSection(KEY).getString("baseUrl", "http://127.0.0.1:8889/pack");
    }
    public static boolean getPlayerOnJoinSend() {
        return GlobalConfig.CONFIG.getConfigurationSection(KEY).getBoolean("playerOnJoinSend", false);
    }

    public static String getPackPath() {
        return GlobalConfig.CONFIG.getConfigurationSection(KEY).getString("packPath", "");
    }
}
